package com.zyf.springcloud.controller;

import com.zyf.springcloud.service.impl.PermissionServiceImpl;
import com.zyf.springcloud.service.impl.RolePermissionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class testController {
    @Autowired
    PermissionServiceImpl permissionService;
    @Autowired
    RolePermissionServiceImpl rolePermissionService;
    @GetMapping("/getAll")
    public Object getAll(){
        return permissionService.getAll();
    }
    @GetMapping("/rp/getAll")
    public Object rpGetAll(){
        return rolePermissionService.getAll();
    }
}
